# 03-捕获所有异常.py
try:
    # print(name)
    #  print(10/0)
    f = open('./gx.txt','r')
# Exception 捕获所有异常
except Exception as e:
    print(e)
else:
    print('没有异常就会执行这里的代码块')
finally:
    print('无论是否有异常都会执行这里的代码块')